﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using System.Web.Http;
using Ninject;
using Timetable.Base;
using Ninject.Web.Common;
using System.Reflection;
using System.Web.Optimization;
using System.Web.Http.Description;
using Timetable.Base.Entities;
using System.Xml.Serialization;
using Timetable.Proxy;


namespace Timetable.Site
{
    public class MvcApplication : HttpApplication
    {               
        protected void Application_Start()
        {
            //var config = GlobalConfiguration.Configuration;
            //config.Services.Replace(typeof(IDocumentationProvider), new XmlDocumentationProvider(HttpContext.Current.Server.MapPath("~/App_Data/Timetable.Site.xml")));

            MvcHandler.DisableMvcResponseHeader = true;

            AreaRegistration.RegisterAllAreas();

            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
            DatabaseConfig.Initialize("DataContext");
        }
    }
}
